package com.laker.admin.module.inv.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author laker
 * @since 2024-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class InvTradein implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "inv_tradein_id", type = IdType.AUTO)
    private Long invTradeinId;

    /**
     * 库存ID
     */
    private Long invId;

    /**
     * 商品ID
     */
    private Long invTradeinProductId;

    /**
     * 商品规格ID
     */
    private Long invCommSpaceId;

    /**
     * 商品名称
     */
    private String commName;

    /**
     * 商品类别名称
     */
    private String commTypeName;

    /**
     * 商品数量
     */
    private Long invTradeinProdSum;

    /**
     * 商品数量(修改后使用)
     */
    private Long invTradeinModifySum;

    /**
     * 领用人
     */
    private String invTradeinReceive;

    /**
     * 入库时间
     */
    private LocalDateTime invTradeinTime;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 入库备注
     */
    private String invTradeinRemark;


    @TableField(exist = false)
    private String commSpecsName;
}
